﻿global using Microsoft.EntityFrameworkCore;

using System.Diagnostics;

namespace WXWorkSvc.Common.Data;

public class WXDbContext : DbContext
{
    public WXDbContext(DbContextOptions<WXDbContext> options) : base(options)
    { }

    public DbSet<TSuite> Suites { get; set; }
    public DbSet<TCorp> Corps { get; set; }
    public DbSet<TAgent> Agents { get; set; }
    public DbSet<TUser> Users { get; set; }

    public DbSet<TPrivateAgent> PrivateAgents { get; set; }
    public DbSet<TPrivateUser> PrivateUsers { get; set; }

    public DbSet<TJwt> Jwts { get; set; }
    public DbSet<TLogger> Loggers { get; set; }

    //protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
    //{
    //    optionsBuilder.LogTo(Console.WriteLine, LogLevel.Information);
    //    base.OnConfiguring(optionsBuilder);
    //}
}
